package com.atguigu.gmall.product.controller.api;

import com.atguigu.gmall.common.result.Result;
import com.atguigu.gmall.product.service.RedisTestService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/redis/product")
public class RedisTestController {

    @Autowired
    private RedisTestService redisTestService;

    @GetMapping("/test")
    public Result setRedis(){
        redisTestService.setRedisByRedission();
        return Result.ok();
    }
}
